import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:imperius_insights/treaty/palette.dart';

import 'view_model.dart';

Color investigateStatusToColor(EnumInvestigateStatus status) {
  if (status == EnumInvestigateStatus.underway) {
    return palette.theme;
  }
  if (status == EnumInvestigateStatus.pending || status == EnumInvestigateStatus.none) {
    return palette.themeSear;
  }
  if (status == EnumInvestigateStatus.pass) {
    return Colors.green;
  }
  if (status == EnumInvestigateStatus.warn) {
    return palette.diagnosticBackgroundWarn;
  }
  if (status == EnumInvestigateStatus.error) {
    return Colors.red;
  }
  if (status == EnumInvestigateStatus.suggest) {
    return palette.diagnosticBackgroundSuggest;
  }
  return Colors.deepPurple;
}